@charset "UTF-8";

.taro-video {
  display: inline-block;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 225px;
  line-height: 0;
}

.taro-video[hidden] {
  display: none;
}

.taro-video-container {
  display: inline-block;

  // NOTE: video 元素父节点设置该属性会导致 iOS 元素层级问题 https://stackoverflow.com/questions/49653475/video-and-z-index-inside-scaled-element-some-divs-disappear
  // overflow: hidden;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  object-position: inherit;
}

.taro-video-container.taro-video-type-fullscreen {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 999;
}

.taro-video-container.taro-video-type-fullscreen.taro-video-type-rotate-left {
  transform: translate(-50%, -50%) rotate(-90deg);
}

.taro-video-container.taro-video-type-fullscreen.taro-video-type-rotate-right {
  transform: translate(-50%, -50%) rotate(90deg);
}

.taro-video-video {
  width: 100%;
  height: 100%;
  object-position: inherit;
}

.taro-video-cover {
  display: flex;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-color: rgb(1 1 1 / 50%);
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-box-pack: center;
  -webkit-box-align: center;
}

.taro-video-cover-play-button {
  width: 40px;
  height: 40px;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 50%;
}

.taro-video-cover-duration {
  margin-top: 10px;
  line-height: 1;
  font-size: 16px;
  color: #fff;
}

.taro-video-bar {
  display: flex;
  visibility: hidden;
  overflow: hidden;
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  align-items: center;
  padding: 0 10px;
  height: 44px;
  background-color: rgb(0 0 0 / 50%);
  -webkit-box-align: center;
}

.taro-video-bar.taro-video-bar-full {
  left: 0;
}

.taro-video-controls {
  display: flex;
  -webkit-box-flex: 1;
  flex-grow: 1;
  margin: 0 8.5px;
}

.taro-video-control-button {
  box-sizing: content-box;
  margin-left: -8.5px;
  padding: 14.5px 12.5px;
  width: 13px;
  height: 15px;
}

.taro-video-control-button::after {
  display: block;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 100%;
  content: "";
}

.taro-video-control-button.taro-video-control-button-play::after,
.taro-video-cover-play-button {
  background-image: url("");
}

.taro-video-control-button.taro-video-control-button-pause::after {
  background-image: url("");
}

.taro-video-current-time,
.taro-video-duration {
  margin-top: 15px;
  margin-bottom: 14.5px;
  height: 14.5px;
  line-height: 14.5px;
  font-size: 12px;
  color: #cbcbcb;
}

.taro-video-progress-container {
  position: relative;
  flex-grow: 2;
  -webkit-box-flex: 2;
}

.taro-video-progress {
  position: relative;
  margin: 21px 12px;
  height: 2px;
  background-color: hsl(0deg 0% 100% / 40%);
}

.taro-video-progress-buffered {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background-color: hsl(0deg 0% 100% / 80%);
  transition: width 0.1s;
}

.taro-video-ball {
  position: absolute;
  left: 0;
  top: -21px;
  box-sizing: content-box;
  margin-left: -22px;
  padding: 14px;
  width: 16px;
  height: 16px;
}

.taro-video-inner {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  background-color: #fff;
}

.taro-video-danmu-button {
  margin: 0 8.5px;
  padding: 2px 10px;
  border: 1px solid #fff;
  border-radius: 5px;
  line-height: 1;
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
}

.taro-video-danmu-button.taro-video-danmu-button-active {
  border-color: #48c23d;
  color: #48c23d;
}

.taro-video-fullscreen,
.taro-video-mute {
  box-sizing: content-box;
  padding: 8.5px;
  width: 17px;
  height: 17px;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 50%;
}

.taro-video-fullscreen {
  background-image: url("");
}

.taro-video-fullscreen.taro-video-type-fullscreen {
  background-image: url("");
}

.taro-video-mute {
  background-image: url("");
}

.taro-video-mute.taro-video-type-mute {
  background-image: url("");
}

.taro-video-danmu {
  overflow: visible;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin-top: 14px;
  margin-bottom: 44px;
  width: 100%;
  line-height: 14px;
  font-size: 14px;
}

.taro-video-danmu-item {
  position: absolute;
  left: 100%;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  transform: translateX(0);
  transition-property: left, transform;
  transition-duration: 3s;
  transition-timing-function: linear;
}

.taro-video-toast {
  display: block;
  visibility: hidden;
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 5px;
  background-color: hsl(0deg 0% 100% / 80%);
  pointer-events: none;
  color: #000;
  transform: translate(-50%, -50%);
}

.taro-video-toast.taro-video-toast-volume {
  display: block;
  width: 100px;
  height: 100px;
}

.taro-video-toast-volume .taro-video-toast-title {
  display: block;
  margin-top: 10px;
  width: 100%;
  line-height: 16px;
  text-align: center;
  font-size: 12px;
}

.taro-video-toast-volume .taro-video-toast-icon {
  display: block;
  margin-left: 25%;
  width: 50%;
  height: 50%;
  background-image: url("");
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 50%;
  fill: #000;
}

.taro-video-toast-volume .taro-video-toast-value {
  margin-left: 10px;
  margin-top: 5px;
  width: 80px;
  height: 5px;
}

.taro-video-toast-volume .taro-video-toast-value > .taro-video-toast-value-content {
  overflow: hidden;
}

.taro-video-toast-volume-grids {
  width: 80px;
  height: 5px;
}

.taro-video-toast-volume-grids-item {
  float: left;
  width: 7.1px;
  height: 5px;
  background-color: #000;
}

.taro-video-toast-volume-grids-item:not(:first-child) {
  margin-left: 1px;
}

.taro-video-toast.taro-video-toast-progress {
  padding: 6px;
  background-color: rgb(0 0 0 / 80%);
  line-height: 18px;
  font-size: 14px;
  color: #fff;
}
